package cc.yugu.yhdw.common.protocol.msg02;

import cc.yugu.yhdw.common.protocol.MsgCode;
import io.netty.buffer.ByteBuf;

public class Msg022000028 extends Msg022 {

    public int fullVolume;
    public int price;
    public String qrcode;
    public byte socFullVolume;
    public byte chargeNum;


    @Override
    public int getMsgCode() {
        return MsgCode.MSG_022000028.getCode();
    }

    @Override
    public void writeData(ByteBuf buffer) {
        writeRtn(buffer);
        buffer.writeInt(fullVolume);
        buffer.writeInt(price);
        writeString(buffer, qrcode);
        buffer.writeByte(socFullVolume);
        buffer.writeByte(chargeNum);

    }
}
